/*    */ package com.umeng.analytics;
/*    */ 
/*    */ import android.content.Context;
/*    */ import android.content.pm.PackageManager;
/*    */ import android.net.ConnectivityManager;
/*    */ import android.net.NetworkInfo;
/*    */ import com.umeng.common.Log;
/*    */ 
/*    */ class h
/*    */ {
/* 16 */   private static final String a = h.class.getName();
/*    */ 
/* 18 */   public static String a(Context paramContext) { PackageManager localPackageManager = paramContext.getPackageManager();
/* 19 */     if (localPackageManager.checkPermission("android.permission.ACCESS_NETWORK_STATE", paramContext.getPackageName()) != 0) {
/* 20 */       return null;
/*    */     }
/*    */     try
/*    */     {
/* 24 */       ConnectivityManager localConnectivityManager = (ConnectivityManager)paramContext
/* 25 */         .getSystemService("connectivity");
/* 26 */       NetworkInfo localNetworkInfo = localConnectivityManager.getActiveNetworkInfo();
/* 27 */       if (localNetworkInfo == null) {
/* 28 */         return null;
/*    */       }
/* 30 */       if (localNetworkInfo.getType() == 1) {
/* 31 */         return null;
/*    */       }
/* 33 */       String str = localNetworkInfo.getExtraInfo();
/* 34 */       Log.a(a, "net type:" + str);
/* 35 */       if (str == null)
/* 36 */         return null;
/* 37 */       if ((str.equals("cmwap")) || (str.equals("3gwap")) || 
/* 38 */         (str.equals("uniwap"))) {
/* 39 */         return "10.0.0.172";
/*    */       }
/*    */ 
/*    */     }
/*    */     catch (Exception localException)
/*    */     {
/* 46 */       localException.printStackTrace();
/*    */     }
/* 48 */     return null;
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.analytics.h
 * JD-Core Version:    0.6.2
 */